PROJECT(banma-ai-base) 
#cmake_minimum_required(VERSION 3.16)
#cmake_minimum_required(3.8)

SET( CMAKE_VERBOSE_MAKEFILE on )
SET(CMAKE_SYSTEM_NAME Linux)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${PLATFORM}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${PLATFORM}/libs)

#编译类型
if(${BuildType} STREQUAL "Debug")
    set(CMAKE_BUILD_TYPE "Debug")    #
    ADD_DEFINITIONS("-DDebug")
else()
    set(CMAKE_BUILD_TYPE "Release")    #
    #ADD_DEFINITIONS("-DRelease")
endif()

message("CMAKE_BUILD_TYPE=" ${CMAKE_BUILD_TYPE})


#内存检测配置 -DDMALLOC -DDMALLOC_FUNC_CHECK
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -W -Wall -g -fpermissive  -std=c++11 -D__const__= -pipe -Wno-unused-parameter -fPIC -fno-omit-frame-pointer")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -W -Wall -s -fpermissive  -std=c++11 -D__const__= -pipe -Wno-unused-parameter -fPIC -fno-omit-frame-pointer")


#头文件路径
#include_directories ("${PROJECT_SOURCE_DIR}/src/log")

#链接库路径
#link_directories() 

#连接的库
#link_libraries(brpc cjson  gflags glog  boost_regex protobuf pthread crypto protoc ttscei uuid )
   
#link_libraries(log)

#项目依赖的模块目录
add_subdirectory("src")
add_subdirectory("test")
